import 'package:flutter/material.dart';
import 'package:flutter/services.dart';

class AppleLogin {
  static const _appleLogin = MethodChannel('com.mesh.ios/appleLogin');

  static Future<bool> appleLogin() async {
    bool isSuccess = false;
    try {
      bool data = await _appleLogin.invokeMethod('AppleLogin');
      isSuccess = data;
    } on PlatformException catch (e) {
      debugPrint('appleLogin error:$e');
    }
    return isSuccess;
  }
}
